//
//  SHPCommon.swift
//  weibo
//
//  Created by songhuipan on 16/4/16.
//  Copyright © 2016年 songhuipan. All rights reserved.
//

import UIKit


    func getColorWithRGB(red:CGFloat ,green:CGFloat ,blue:CGFloat) ->UIColor {
        
        return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: 1)
    }
// 随机颜色
func RandomColor() -> UIColor{
    
    // random() 有一个bug 每次程序启动起来后产生的随机数 都是相同
    let r = random() % 256
    let g = random() % 256
    let b = random() % 256
    return getColorWithRGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}
    
    let kScreenWidth = UIScreen.mainScreen().bounds.size.width
    
    let kScreenHeigth = UIScreen.mainScreen().bounds.size.height
    
    let kScreenBounds = UIScreen.mainScreen().bounds

 /// 回调闭包起别名
    typealias finishCallback = (responseObject:AnyObject?,error:NSError? )->()

 /// 主题颜色
    let ThemeColor = UIColor.orangeColor()
 /// 应用相关字段
//    let appKey = "2502178694"
    let appKey = "48436472"
//    let appKey = "3040869968"


//    let appSecret = "cab21a615b11a37b9000c9082ddad03d"
    let appSecret = "fb4c7e82a0ec30aa2fcb4723417d4d4b"
//        let appSecret = "e350f62e7117c9291218d9310fc59b38"

//    let redirectUrl = "http://www.baidu.com/"
    let redirectUrl = "http://www.iqiyi.com/"
    let weiboUserName = "songhuipan1234@sina.com"
    let weiboPassWord = "song1234"

//    let weiboUserName = "rangyuan05788697@163.com"
//    let weiboUserName = "2663215585@qq.com"

//    let weiboPassWord = "tMZ-8kk-Ddw-auW"
//    let weiboPassWord = "aaa333"


